/*样式
* | 标题
* */
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

import '../utility/sq_color.dart';

class LineToTextView extends StatelessWidget {
  late String text1;
  late Color textColor;
  late double textSize;
  late double paddingTop;
  late bool isBind;

  LineToTextView(
      {Key? key,
      this.text1 = "",
      this.textColor = const Color(0xFF3D3D3D),
      this.paddingTop = 5,
      this.isBind = false,
      this.textSize = 14});

  @override
  Widget build(BuildContext context) {
    return Container(
      // margin: EdgeInsets.only(bottom: 15),
      child: Row(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Container(
            margin: EdgeInsets.only(top: paddingTop),
            width: 2,
            height: 12,
            decoration: BoxDecoration(
                borderRadius: BorderRadius.all(Radius.circular(1)),
                color: SQColor.color_0052D9),
          ),
          SizedBox(width: 5),
          Expanded(
              child: Text(text1,
                  style: TextStyle(
                      fontSize: textSize,
                      color: SQColor.color_3D3D3D,
                      fontWeight:
                          isBind ? FontWeight.bold : FontWeight.normal)))
        ],
      ),
    );
  }
}
